package com.mz.ieann.aide.city.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * <p>------------------------------------------------------
 * <p> Copyright (C) 2021 zhangmz, All rights reserved.
 * <p> If there is technical discussion, you can contact zhangmz90@foxmail.com
 * <p>------------------------------------------------------
 * <p> des
 * <p>
 *
 * @author Created by Administrator
 * @date on 2021 2021/10/27 21:19
 */
public class HouseParam implements Parcelable {

    private int start;
    private int num;
    private String q;
    private int city_id;
    private int room_count;
    private int area_min;
    private int area_max;
    private boolean is_standard;
    private String sign;

    private String appkey;
    private String timestamp;
    private String appuid;

    public HouseParam(){

    }

    protected HouseParam(Parcel in) {
        start = in.readInt();
        num = in.readInt();
        q = in.readString();
        city_id = in.readInt();
        room_count = in.readInt();
        area_min = in.readInt();
        area_max = in.readInt();
        is_standard = in.readByte() != 0;
        sign = in.readString();
        appkey = in.readString();
        timestamp = in.readString();
        appuid = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(start);
        dest.writeInt(num);
        dest.writeString(q);
        dest.writeInt(city_id);
        dest.writeInt(room_count);
        dest.writeInt(area_min);
        dest.writeInt(area_max);
        dest.writeByte((byte) (is_standard ? 1 : 0));
        dest.writeString(sign);
        dest.writeString(appkey);
        dest.writeString(timestamp);
        dest.writeString(appuid);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<HouseParam> CREATOR = new Creator<HouseParam>() {
        @Override
        public HouseParam createFromParcel(Parcel in) {
            return new HouseParam(in);
        }

        @Override
        public HouseParam[] newArray(int size) {
            return new HouseParam[size];
        }
    };

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getQ() {
        return q;
    }

    public void setQ(String q) {
        this.q = q;
    }

    public int getCity_id() {
        return city_id;
    }

    public void setCity_id(int city_id) {
        this.city_id = city_id;
    }

    public int getRoom_count() {
        return room_count;
    }

    public void setRoom_count(int room_count) {
        this.room_count = room_count;
    }

    public int getArea_min() {
        return area_min;
    }

    public void setArea_min(int area_min) {
        this.area_min = area_min;
    }

    public int getArea_max() {
        return area_max;
    }

    public void setArea_max(int area_max) {
        this.area_max = area_max;
    }

    public boolean isIs_standard() {
        return is_standard;
    }

    public void setIs_standard(boolean is_standard) {
        this.is_standard = is_standard;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getAppkey() {
        return appkey;
    }

    public void setAppkey(String appkey) {
        this.appkey = appkey;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getAppuid() {
        return appuid;
    }

    public void setAppuid(String appuid) {
        this.appuid = appuid;
    }

    @Override
    public String toString() {
        return "HouseParam{" +
                "start=" + start +
                ", num=" + num +
                ", q='" + q + '\'' +
                ", city_id=" + city_id +
                ", room_count=" + room_count +
                ", area_min=" + area_min +
                ", area_max=" + area_max +
                ", is_standard=" + is_standard +
                ", sign='" + sign + '\'' +
                ", appkey='" + appkey + '\'' +
                ", timestamp='" + timestamp + '\'' +
                ", appuid='" + appuid + '\'' +
                '}';
    }

}
